export function playNumberFormat(index) {
    if (index >= 10000) {
        const data = Math.floor(index / 10000);
        return `${data}万`;
    } else {
        return index;
    }
}

export  function sliceArray(array, subGroupLength) {
    let index = 0;
    let newArray = [];
    while(index < array.length) {
        newArray.push(array.slice(index, index += subGroupLength));
    }
    return newArray;
}